<?php

//Route::group(['namespace'=>'App\Http\Controllers\Api\Task','prefix'=>'api','middleware'=>'WebAuth'],function(){

Route::group(['namespace'=>'App\Http\Controllers\Api\Task','prefix'=>'api'],function(){

	/*******************发布任务******************/
	//获取任务列表
    Route::any('task/get_list', 'TaskController@get_list');
    //获取单个任务
    Route::any('task/get_task', 'TaskController@get_task');
    //添加任务
    Route::post('task/add_task', 'TaskController@add_task');
    //更新任务
    Route::post('task/update_task', 'TaskController@update_task');
    //删除任务
    Route::post('task/delete_task', 'TaskController@delete_task');
});

//登录中间件
Route::group(['namespace'=>'App\Http\Controllers\Api\Task','prefix'=>'api'],function(){
    //领取任务
    Route::post('task/add_draw_task', 'TaskController@add_draw_task');
});